package cn.liontalk.api;

import cn.liontalk.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.ws.rs.GET;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description 测试Hystrix的Controller
 * @date 2018-12-02 16:55
 **/
@RestController
public class HelloController {


    @Autowired
    private HelloService helloService;


    @GetMapping(value = {"/hi","/hello"})
    public String testHello(){
        return helloService.testHelloService();
    }


}
